package com.shimmer.beenFactory;

/**
 * @Package com.shimmer.simpleFactory
 * @Author shimmer
 * @Date 2020/8/10 14:41
 * @TODO
 */
public class UserServiceImplNew implements UserService{
    private UserDao userDao= new UserDaoImpl();
    @Override
    public void register(User user) {
        userDao.save(user);
    }

    @Override
    public void login(String name, String pwd) {
        userDao.queryUserByNameAndPassword(name,pwd);
    }
}
